/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.moshi.test.learn.factory.method.t1.service2;

import com.azdebugit.moshi.test.learn.factory.method.t1.inter.AbstractFactory;
import com.azdebugit.moshi.test.learn.factory.method.t1.inter.Product;
import com.azdebugit.moshi.test.learn.factory.method.t1.service1.ConcreteProduct2;

//具体工厂2：实现了厂品的生成方法
public class ConcreteFactory2 implements AbstractFactory {
    public Product newProduct() {
        System.out.println("具体工厂2生成-->具体产品2...");
        return new ConcreteProduct2();
    }
}